import groovy.json.JsonBuilder
import org.apache.hadoop.conf.Configuration
import org.apache.hadoop.fs.{FileSystem, Path}

import org.apache.spark.{SparkConf, SparkContext}
import org.apache.spark.SparkContext._

import org.json4s._
import org.json4s.jackson.JsonMethods._
/**
 * Created by root on 2015/5/19.
 */


//case class  user(name:String,age: Int)
object demo1 {
  def main(args: Array[String]) {
    import scala.collection.mutable.Map
    val treasureMap = Map[Int, String]()
    treasureMap += (1 -> "Go to island.")
    treasureMap += (2 -> "Find big X on ground.")
    treasureMap += (3 -> "Dig.")
      treasureMap += (4 -> "feel")
        println(treasureMap.toIterable)



   // println(parse(treasureMap.toIterable))



 //  val j=JSON.toJSONString(treasureMap.toBuffer)
 //  println(j)
  }
}
